package cc.momas.momall.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cc.momas.common.utils.E3Result;
import cc.momas.momall.po.TbItemDesc;
import cc.momas.momall.service.IItemDescService;

@Controller
public class ItemDescController {

	@Autowired
	private IItemDescService descSvc;

	@RequestMapping(value = "/rest/item/query/item/desc/{id}")
	@ResponseBody
	private E3Result queryById(@PathVariable Long id) {
		TbItemDesc desc = descSvc.getById(id);
		return E3Result.ok(desc);
	}

}
